package com.qfedu.lc.common.util;

import cn.hutool.crypto.SecureUtil;

public class JwtTest {

    public static void main(String[] args) {

        // 创建token
        String jwt = JwtUtil.createJwt(100, "13265760000", "13265760000");
        System.out.println("jwt = " + jwt);

        // 解析token
        Object id = JwtUtil.parseToken(jwt, "id");
        System.out.println("id = " + id);

        Object phone = JwtUtil.parseToken(jwt, "phone");
        System.out.println("phone = " + phone);


        String md5 = SecureUtil.md5("123456");
        System.out.println("md5 = " + md5);


    }
}
